package com.meida.module.bus.provider.handler;

import com.meida.common.base.entity.EntityMap;
import com.meida.common.mybatis.interceptor.GetInterceptor;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.common.security.OpenHelper;
import com.meida.module.user.client.entity.AppUser;
import org.springframework.stereotype.Component;

/**
 * @author lidd
 * @description: 用户扩展字段 实名认证
 * @date: 2022年-06月-23日  00:06:42
 */
@Component("appUserExtraGetHandler")
public class AppUserExtraGetHandler implements GetInterceptor {


    @Override
    public void prepare(CriteriaQuery cq, EntityMap params) {
        cq.select(AppUser.class, "idCard,fullName");
        cq.eq("userId", OpenHelper.getUserId());

    }


}
